package com.spzx.product.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "商品单位")
public class ProductUnit extends BaseEntity {
    @Schema(description = "商品单位名称")
    @NotEmpty(message = "商品名称不能为空")
    @Size(min = 0,max = 5, message = "商品单位名称长度范围1~5")
    public String name;

   /* @Schema(description = "品牌单位名称")
    @NotEmpty(message = "品牌名称不能为空")
    @Size(min = 0, max = 200, message = "品牌图标长度不能超过200个字符")
    public String logo;*/

}
